package com.zf.service.Impl;

import com.zf.mapper.seatMapper;
import com.zf.pojo.optionalSeat;
import com.zf.pojo.seat;
import com.zf.service.seatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class seatServiceImpl  implements seatService {

    @Autowired
    seatMapper mapper;
    @Override
    public List<optionalSeat> optional(String flightNumber, String seatLocation) {
        return mapper.optional(flightNumber,seatLocation);
    }

    @Override
    public int delete(int seatId) {
        return mapper.delete(seatId);
    }

    @Override
    public int addSeat(seat seat) {
        return mapper.addSeat(seat);
    }
}
